Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: avoid "string" as parameter name to improve readability #4146

Merged
merged 2 commits into from
May 28, 2024

Conversation

mikeloguay
Copy link
Contributor

In general, I think it is a bad idea to use name parameters with the same name of its type. I am coming from C#, and there both string and String are the reserved words for the type name. It could be confusing and easily avoided using message, word, or something else instead.

@mikeloguay mikeloguay requested a review from a team as a code owner April 23, 2024 08:48
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 24, 2024
@koshachy koshachy removed the Stale label May 24, 2024
@sarahhaggarty sarahhaggarty self-requested a review May 27, 2024 14:49
@sarahhaggarty
Copy link
Collaborator

Hi @mikeloguay !
Sorry for the delay in reviewing your PR. We were working hard last month to get everything ready for the release of Kotlin 2.0.0.

Thanks for pointing this out. I agree, we can make a change here. I'd like to suggest text as an alternative to message. What do you think?

@mikeloguay
Copy link
Contributor Author

Hi @sarahhaggarty, no problem for the delay. I was following the tour and just thought this was a bit confusing.

OK about the rename to text. Done!

@sarahhaggarty sarahhaggarty merged commit 5df0480 into JetBrains:master May 28, 2024
3 checks passed
@sarahhaggarty
Copy link
Collaborator

Great! Thanks for your contribution @mikeloguay !

@mikeloguay
Copy link
Contributor Author

Great! Thanks for your contribution @mikeloguay !

To you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants